using System.Web.Mvc;
using AWSTool.Models;

namespace AWSTool.Controllers
{
    [Authorize]
    public class AWSToolController : Controller
    {
        private AWSToolDbContext Db = new AWSToolDbContext();

        public ActionResult Index()
        {
            return View();
        }

        public void AddNetWork(Network network)
        {
            Db.Networks.Add(network);
            Db.SaveChanges();
        }

        public JsonResult TestData()
        {
            var teststring = "Test";
            return Json(teststring, JsonRequestBehavior.AllowGet);
        }
    }
}
